package com.woniu.cms.contract.core.service.impl;

import com.woniu.cms.contract.core.entity.AreaVo;
import com.woniu.cms.contract.core.entity.Bid;
import com.woniu.cms.contract.core.mapper.BidMapper;
import com.woniu.cms.contract.core.service.IBidService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author maple leaf
 * @since 2022-09-17
 */
@Service
public class BidServiceImpl extends ServiceImpl<BidMapper, Bid> implements IBidService {

    @Autowired
    private BidMapper bidMapper;

    @Override
    public List<Bid> generatedNumber(String bid, String date, String area) {
        List<Bid> bids = bidMapper.generatedNumber(bid,date, area);
        return bids;
    }

    @Override
    public AreaVo areaName(String place) {
        AreaVo areaName = bidMapper.areaName(place);
        return areaName;
    }
}
